package com.sanyou.pojo.param;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Past;
import java.util.Date;
import java.util.List;

@Data
public class CopperParticleHistoryParam {
    /**
     * 开始时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @Past
    private Date startDate;

    /**
     * 结束时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date endDate;

    /**
     * 查询车间号
     */
    @NotEmpty(message = "车间号不能为空")
    private String subFactoryNo;

    /**
     * 查询间隔天数
     */
    private Integer interval = 1;
}
